#include "trafficcontrolframe.h"

TrafficControlFrame::TrafficControlFrame(
    const QString &name,
    const StreetMap::Intersection *intersection,
    const TrafficControl::State &state)
  : mName(name),
  mIntersection(intersection),
  mState(state)
{
}

void TrafficControlFrame::setName(const QString &name)
{
  mName = name;
}

QString TrafficControlFrame::name() const
{
  return mName;
}

void TrafficControlFrame::setState(const TrafficControl::State &state)
{
  mState = state;
}

TrafficControl::State TrafficControlFrame::state() const
{
  return mState;
}

void TrafficControlFrame::setIntersection(const StreetMap::Intersection *intersection)
{
  mIntersection = intersection;
}

const StreetMap::Intersection* TrafficControlFrame::intersection() const
{
  return mIntersection;
}
